package logic

import (
	"context"

	"vaildate/api/internal/svc"
	"vaildate/api/internal/types"

	"github.com/zeromicro/go-zero/core/logx"
)

type GerLogic struct {
	logx.Logger
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

func NewGerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GerLogic {
	return &GerLogic{
		Logger: logx.WithContext(ctx),
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (l *GerLogic) Ger(req *types.GetTokenRequest) (resp *types.Response, err error) {
	// todo: add your logic here and delete this line
	return &types.Response{
		Code:    200,
		Message: "",
		Data:    req.UserId,
	}, nil
}
